<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 *
 * @author liubin-bt
 * @property InvestInstitution_model $InvestInstitution_model
 * @property ProjectInvestorRecom_model $ProjectInvestorRecom_model
 * @property Investor_model $Investor_model
*/
class Invest extends Base {

	public function __construct(){
		parent::__construct();
		$this->load->model('Investor_model');
	}
	
	public function insPageList(){
		$page = intval($this->getSafeRequest('page', 1));
		$keyword = $this->getSafeRequest('keyword', '');
		$limit = intval($this->getSafeRequest('limit', 10));
		if( $limit > 100 ){
		    $limit = 10;
		}
		list($count, $list) = $this->Investor_model->gePageList($keyword, $page, $limit);
		
		$this->outJsonData(0, ['count'=>$count, 'list'=>$list]);
	}
	
}